package group2projman;

class Query {
	String author, title;
	
	int isbn;
	
	Catalogue.Category category;
	
	Query(String pAuthor, String pTitle, int pIsbn, Catalogue.Category pCategory) {
		author = pAuthor;		
		title = pTitle;
		isbn = pIsbn;
		category = pCategory;
	}
	
	static Query byAuthor(String pAuthor) {
		return new Query(pAuthor, null, 0, null);		
	}
	
	static Query byTitle(String pTitle) {
		return new Query(null, pTitle, 0, null);		
	}
	
	static Query byIsbn(int pIsbn) {
		return new Query(null, null, pIsbn, null);		
	}
	
	
}
